package com.ruoyi.project.check.service.Impl;

import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.project.check.domian.Hoscheck;
import com.ruoyi.project.check.domian.Hosresultselect;
import com.ruoyi.project.check.mapper.HosResultselectMapper;
import com.ruoyi.project.check.service.IHosResultselectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.unit.DataUnit;

import java.util.List;
@Service
public class IHosResultselectServiceImpl implements IHosResultselectService {


    @Autowired
    private HosResultselectMapper hosResultselectMapper;


    @Override
    public List<Hosresultselect> selectHosResultselectlist(Hosresultselect hosresultselect) {
        return hosResultselectMapper.selectHosResultselectlist(hosresultselect);
    }

    @Override
    public Hosresultselect insertHosResultselect(Hosresultselect hosresultselect) {
        hosresultselect.setCreateTime(DateUtils.getNowDate());
        return hosResultselectMapper.insertHosResultselect(hosresultselect);
    }

    @Override
    public Hosresultselect selectHosResultselectById(Long checkId) {
        return hosResultselectMapper.selectHosResultselectById(checkId);
    }

    @Override
    public int updateHosResultselect(Hosresultselect hosresultselect) {
        return hosResultselectMapper.updateHosResultselect(hosresultselect);
    }
}
